import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JDesktopPane;
import javax.swing.JLabel;
import javax.swing.SwingConstants;
import javax.swing.JButton;

import java.awt.Color;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;

import javax.swing.JTextField;

import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import java.beans.PropertyVetoException;


public class VentanaInicio extends JFrame {


	//protected JPanel contentPane;
	protected JDesktopPane jDesktopPane1;
	protected JPanel panelInicio;
	protected VentanaLogin ventanaLogin;
	protected JLabel lblUsuario;
/*	private JTextField textFieldNombreAdmin;
	private JTextField textFieldPassAdmin;
	private JTextField textFieldLegajoInspector;
	private JTextField textFieldPassInspector;*/
	/*
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					VentanaInicio frame = new VentanaInicio();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public VentanaInicio() {
		super();
		initGUI();
	/*	
		ventanaLogin=new VentanaLogin();
		ventanaLogin.setVisible(false);
		jDesktopPane1.add(ventanaLogin);
*/
		
	}
	
	private void initGUI(){
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 400, 300);
//		contentPane = new JPanel();
//		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
//		setContentPane(contentPane);
//		contentPane.setLayout(null);
		
		
		jDesktopPane1 = new JDesktopPane();
		jDesktopPane1.setLayout(null);
        getContentPane().add(jDesktopPane1);
        jDesktopPane1.setPreferredSize(new java.awt.Dimension(800, 600));
		
				
		//PANEL INICIO
		panelInicio = new JPanel();
		panelInicio.setBounds(0, 0, 384, 261);
		jDesktopPane1.add(panelInicio);
		panelInicio.setLayout(null);
	
		lblUsuario = new JLabel("Ingresar como:");
		lblUsuario.setBounds(73, 25, 226, 68);
		panelInicio.add(lblUsuario);
		lblUsuario.setHorizontalAlignment(SwingConstants.CENTER);
		lblUsuario.setOpaque(true);
		
		JButton btnButtonadmin = new JButton("Administrador");
		btnButtonadmin.setBounds(122, 103, 150, 40);
		panelInicio.add(btnButtonadmin);
		
		JButton btnButtoninspector = new JButton("Inspector");
		btnButtoninspector.setBounds(122, 167, 150, 40);
		panelInicio.add(btnButtoninspector);
		
		btnButtoninspector.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseClicked(MouseEvent e) {/*
				ventanaLogin.setUser("Inspector");

				try {
					ventanaLogin.setMaximum(true);
				} catch (PropertyVetoException e1) {
					// TODO Auto-generated catch block
					e1.printStackTrace();
				}
				ventanaLogin.setVisible(true);*/
			}
		});
		btnButtonadmin.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseClicked(MouseEvent arg0) {
		/*		ventanaLogin.setUser("Admin");
				try {
					ventanaLogin.setMaximum(true);
				} catch (PropertyVetoException e1) {
					// TODO Auto-generated catch block
					e1.printStackTrace();
				}
				ventanaLogin.setVisible(true);				
		*/	}

		});
	}
	
}
